cmake_minimum_required(VERSION 3.1.0)
project( LearningOpenCV )

set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )


# add_executable( DisplayImage hello.cpp )
# target_link_libraries( DisplayImage ${OpenCV_LIBS} )


# Qt
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

set(example9_5_SRC
    QMoviePlayer.ui
    QMoviePlayer.cpp
    example9_5.cpp
)

find_package(Qt5Widgets CONFIG REQUIRED)

add_executable( example9_5 ${example9_5_SRC})
target_link_libraries(example9_5  ${OpenCV_LIBS} Qt5::Widgets)